package bean;

import com.mysql.fabric.xmlrpc.base.Data;

import java.util.Date;

public class Car {
    private int cId;
    private String bName;
    private String cName;
    private String content;
    private int price;
    private Date time;
    private int brandId;


    public Car() {
    }

    public Car(int cId, String bName, String cName, String content, int price, Date time) {
        this.cId = cId;
        this.bName = bName;
        this.cName = cName;
        this.content = content;
        this.price = price;
        this.time = time;
    }

    public Car(int cId, String cName, String bName, String content, int price, Date time, int brandId) {
        this.cId = cId;
        this.bName = bName;
        this.cName = cName;
        this.content = content;
        this.price = price;
        this.time = time;
        this.brandId = brandId;
    }

    public int getcId() {
        return cId;
    }

    public void setcId(int cId) {
        this.cId = cId;
    }

    public String getbName() {
        return bName;
    }

    public void setbName(String bName) {
        this.bName = bName;
    }

    public String getcName() {
        return cName;
    }

    public void setcName(String cName) {
        this.cName = cName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "Car{" +
                "cId=" + cId +
                ", bName='" + bName + '\'' +
                ", cName='" + cName + '\'' +
                ", content='" + content + '\'' +
                ", price=" + price +
                ", time=" + time +
                '}';
    }
}
